package com.xuxueli.applyModules;
import com.xuxueli.applyModules.commont.testEntityFeids.XdoAgent;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author xuxueli 2018-10-28 00:38:13
 */
@SpringBootApplication
//@MapperScan(basePackages = {"com.xuxueli.applyModules.mapper"})
public class JobStartApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        XdoAgent.Install();
        SpringApplication.run(JobStartApplication.class, args);
    }

    // 不重写打包war部署到tomcat接口会报404
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(JobStartApplication.class);
    }

}